import request from '@/utils/request'
import { praseStrEmpty } from "@/utils/ruoyi";

// 个体工商户-列表
export function selfEmployedList(query) {
  return request({
    url: '/tax/person/selfEmployed/list',
    method: 'get',
    params: query
  })
}
// 个体工商户-导出
export function selfEmployedListDownload(query) {
  return request({
    url: '/tax/person/selfEmployed/list/download',
    method: 'get',
    responseType: "blob",
    params: query
  })
}
//  临时税务登记-列表
export function tempSelfEmployedList(query) {
  return request({
    url: '/tax/person/tempSelfEmployed/list',
    method: 'get',
    params: query
  })
}
// 临时税务登记-导出
export function tempSelfEmployedListDownload(query) {
  return request({
    url: '/tax/person/tempSelfEmployed/list/download',
    method: 'get',
    responseType: "blob",
    params: query
  })
}
// 更新申请状态
export function registerStatusUpdate(data) {
  return request({
    url: '/tax/person/update/registerStatus',
    method: 'post',
    data: data
  })
}
// 纳税人信息详情
export function taxPersonListDetail(id) {
  return request({
    url: '/tax/person/list/detail/' + id,
    method: 'get'
  })
}